home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Why atol( "65536" ) return 0?
- Date: 25 Mar 1996 08:02 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <25MAR199608025637@erich.triumf.ca>
- References: <315688C2.2C56@blue.nowcom.co.kr>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <315688C2.2C56@blue.nowcom.co.kr>, whoever <whatever@blue.nowcom.co.kr> writes...
- >why ?_?
-
- Did you #include <stdlib.h>
-
- If not, the compiler will assume that atol() returns an int. For MS-DOS
- compilers, 65536 won't fit in an int. (16 bits)
-
- >mailto:whatever@blue.nowcom.co.kr
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-